package com.mongo.api;

import com.tanhua.dubbo.mongo.VideoAPI;
import com.tanhua.mongo.Video;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;

@DubboService
public class VideoAPIImpl implements VideoAPI {

    @Autowired
    private MongoTemplate mongoTemplate;


    @Override
    public void save(Video video) {
        mongoTemplate.save(video);
    }
}
